package com.liruan.rest.util;

import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;

public final class JSONProcessorFactory
{
	private static final ObjectMapper JSON = new ObjectMapper();
	static
	{
		JSON.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS).setSerializationInclusion(Include.NON_NULL);
	}

	public static ObjectMapper getJSON()
	{
		return JSON;
	}
}
